package homework.yuandan.mapper;

import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 作者:49293
 * 时间:2021/1/6-15:29
 * @author 49293
 */
public interface RoleMapper {
    /**
     *  根据角色id查询全下马的集合
     * @param roleId 角色id
     * @return  权限码的集合
     */
    @Select("select right_code from role_action_right inner join action_right ar on role_action_right.right_id = ar.right_id where role_id = #{roleId}")
    List<String> selectRightCodeByRoleId(Integer roleId);
}
